package operation.modules.operation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import operation.modules.operation.entity.StatisticEntity;
import operation.util.PageUtil;
import operation.util.ReqResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface StatisticService extends IService<StatisticEntity> {
    /**
     * 分页查询
     * @param params
     * @return
     */
    PageUtil queryPage(Map<String, Object> params);

    /**
     * 文件上传
     * @param file
     * @param type
     * @return
     */
    ReqResult importData(MultipartFile file, String type);

    /**
     * 导出
     */
    void export(HttpServletResponse response, Map<String, Object> params);

    /**
     * 根据删除
     * @param userIdList
     */
    void deleteByIds(List<Long> userIdList);

    /**
     * 修改信息
     * @param statisticEntity
     */
    void updateStatistic(StatisticEntity statisticEntity);
}
